'use client'

import { AppProgressBar as ProgressBar } from 'next-nprogress-bar'

interface ProgressBarProviderProps {
  children: React.ReactNode
}

const ProgressBarProvider: React.FC<ProgressBarProviderProps> = (props) => {
  const { children } = props
  return (
    <>
      <ProgressBar
        height='3px'
        color='#A6C32D'
        options={{ showSpinner: false }}
        shouldCompareComplexProps
      />
      {children}
    </>
  )
}

export default ProgressBarProvider
